Political parties condemned the "dastardly" attack and said there can be no justification for targeting innocents.